package pub.dsb.admin.controller;

import org.flowable.ui.common.model.UserRepresentation;
import org.flowable.ui.common.security.SecurityUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/flow")
public class RemoteAccountController {


    @RequestMapping(value = "/rest/account",
            method = RequestMethod.GET,
            produces = "application/json")
    public UserRepresentation getAccount() {
        return SecurityUtils.getAdminUser();
    }
}